<!--
 * @Author: Bonnie
 * @Date: 2021-12-14 15:03:40
 * @LastEditTime: 2021-12-14 15:20:37
 * @LastEditors: Bonnie
 * @Description: 
 * @FilePath: /public_demo/src/views/video_list/index.vue
-->

<template>
  <div class="root-container">
    <el-input v-model.number="num" />
    <div class="video-box">
      <div class="item flex flex-center" v-for="n in num" :key="n">{{n}}</div>
      <i class="empty" v-for="i in 10" :key="`i_${i}`" />
    </div>
  </div>
</template>
<script>
export default {
  name: "index",
  data() {
    return {
      num: 10
    };
  }
};
</script>
<style lang='scss' scoped>
.video-box {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .item,
  .empty {
    width: 360px;
  }
  .item {
    height: 220px;
    margin-bottom: 20px;
    background-color: #eee;
    border-radius: 8px;
  }
  .empty {
    height: 0px;
  }
}
</style>